import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class StorageService {

  constructor() { }

  set(keyId:string,value:any){
    localStorage.setItem(keyId,JSON.stringify(value));
  }
  get(keyId:string){
    return JSON.parse(localStorage.getItem(keyId));
  }

  remove(keyId:string){
    localStorage.removeItem(keyId);
  }
}
